﻿using System;
namespace GrayParrot.Core.ServiceBus
{
    public interface IPublisher<IN, OUT>
     where IN : class, new()
    {
        void Dispose();
        bool Send(MessageBusBase<IN, OUT> message);
        bool Send(MessageBusBase<IN, OUT> message, DateTime delay);
    }
}
